<template>
	<view style="padding: 30rpx;">
		<button @click="onLog()">Console.log</button>
		<button @click="onLog()">Console.debug</button>
		<button @click="onLog()">Console.info</button>
		<button @click="onLog()">Console.warn</button>
		<button @click="onLog()">Console.error</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				myname:"hyx"
			}
		},
		methods: {
			onLog(){
				console.log("onLog()--> myname: " + this.myname);
				console.log("clog+enter");
			},
			onDebug(){
				console.debug("onDebug")
			},
			onInfo(){
				console.info("onInfo")
			},
			onWarn(){
				console.warn("onWarn")
				if(true){
					console.log("ture");
				}else{
					console.warn("快出错了...")
				}
			},
			onError(){
				console.error("onError")
				try{
					
				}catch(e){
					console.error(e)
				}
			}
		}
	}
</script>

<style>

</style>
